<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<html>
<head>
    <meta charset="utf-8">
    <!--base-->
    <link th:href="@{~/hAdmin/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
    <link th:href="@{~/hAdmin/css/font-awesome.css?v=4.4.0}" rel="stylesheet">
    <link th:href="@{~/hAdmin/css/animate.css}" rel="stylesheet">
    <link th:href="@{~/hAdmin/css/style.css?v=4.1.0}" rel="stylesheet">
    <link th:href="@{~/hAdmin/css/easyui/themes/bootstrap/easyui.css}" rel="stylesheet"/>

    <!-- 全局js -->
    <script th:src="@{~/hAdmin/js/jquery.min.js?v=2.1.4}"></script>
    <script th:src="@{~/hAdmin/js/bootstrap.min.js?v=3.3.6}"></script>
    <script th:src="@{~/hAdmin/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script th:src="@{~/hAdmin/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
    <script th:src="@{~/hAdmin/js/plugins/layer/layer.min.js}"></script>

    <!-- Peity -->
    <script th:src="@{~/hAdmin/js/plugins/peity/jquery.peity.min.js}"></script>
    <!-- 第三方插件 -->
    <script th:src="@{~/hAdmin/js/plugins/pace/pace.min.js}"></script>
    <!-- 自定义-->
    <script th:src="@{~/hAdmin/js/tool/tip.js}"></script>
    <script th:src="@{~/hAdmin/js/tool/http.js}"></script>

    <!--validate-->
    <link rel="stylesheet" th:href="@{~/validform/css/style.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{~/validform/css/tablefrom.css}" type="text/css"/>
    <script type="text/javascript" th:src="@{~/validform/js/Validform_v5.3.1_min.js}"></script>
    <script type="text/javascript" th:src="@{~/validform/js/Validform_Datatype.js}"></script>
    <script type="text/javascript" th:src="@{~/validform/js/datatype.js}"></script>
    <script type="text/javascript" th:src="@{~/validform/js/TipType.js}"></script>
</head>

<body class="gray-bg">
<!--新增页面-->
<form class="form-horizontal" id="formobj" method="post" action="/admin/permission/add">
    <input type="hidden" id="btn_sub"/>
    <div class="wrapper wrapper-content">
        <div class="row animated fadeInRight">
            <div class="col-sm-10">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">联盟：</label>
                                <div class="col-sm-6">
                                    <select  datatype="*" class="form-control" name="groupId" style="height: 32px">
                                        <option th:each="entry, status:${groupMap}" th:value="${entry.key}">
                                            <div th:text="${entry.value}"/>
                                        </option>
                                    </select>
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">pubKey：</label>
                                <div class="col-sm-6">
                                    <input datatype="*" type="text" name="publicKey" class="form-control"
                                           placeholder="pubKey"/>
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">表名：</label>
                                <div class="col-sm-6">
                                    <input datatype="*" type="text" name="tableName" class="form-control" placeholder="表名"/>
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">权限：</label>
                                <div class="col-sm-6">
                                    <select  datatype="*" class="form-control" name="permissionType" style="height: 32px">
                                        <option th:each="entry, status:${permissionMap}" th:value="${entry.key}">
                                            <div th:text="${entry.value}"/>
                                        </option>
                                    </select>
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>

<script th:src="@{~/block/permission/permission_add.js}"></script>

</body>
</html>